home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d22 / copyqm.arc / MVLS.DOC < prev    next >
Text File  |  1990-09-29  |  4KB  |  105 lines

  1.            MV - Move Files or Directories
  2.            LS - List Files, Total Space
  3.  
  4.             Copyright 1987, 1988
  5.                 Sydex
  6.             153 North Murphy Ave.
  7.             Sunnyvale, CA  94086
  8.  
  9.     MV and LS are two simple routines without which life with a computer
  10.     would get to be more of a bother than it already is.
  11.  
  12.     LS produces a sorted listing of files.  The list is sorted by file
  13.     extension first, then by file name.     The size of each file is shown
  14.     as a decimal number, expressed in kilobytes (1,000 bytes, not 1,024).
  15.  
  16.     Attributes are also shown by means of one-character flags appended
  17.     to each file name.
  18.  
  19.     If the file listing is being displayed on the console (rather than
  20.     being redirected to a file), LS pauses after filling the display with
  21.     24 lines of text.  Any keypress will cause LS to display the next
  22.     screen.
  23.  
  24.     LS summarizes the total spaces needed for all files at the conclusion
  25.     of the display.
  26.  
  27.     LS has the follwing command form:
  28.  
  29.         ls pathname pathname...
  30.  
  31.     "pathname" is a file, directory, or unit specification.  If "pathname"
  32.     is omitted, the files in the current directory are displayed.
  33.  
  34.  
  35.     MV moves or renames files and directories.    The command form for MV
  36.     is:
  37.  
  38.         mv options sources... destination
  39.  
  40.     "option" may be omitted.  If present it takes the form of a slash "/"
  41.     followed by one or more of the following characters:
  42.  
  43.     o - if a destination file of the same name as the source is present,
  44.         overwrite it with the source file.    Otherwise, MV prompts for
  45.         approval.
  46.  
  47.     k - keep a copy of the old source file.     MV usually removes
  48.         the old source file after a new copy is made at the destination.
  49.  
  50.     e - under no circumstances allow a destination file of the same
  51.         name to be overwritten with a source file.    MV usually prompts
  52.         for approval before this is done; the "e" option assumes that
  53.         the answer to the prompt will be "N" (dont't move the file).
  54.  
  55.     q - always question and prompt for approval when moving any file.
  56.         Normally, MV doesn't bother to ask about moves unless a
  57.         destination file of the same name already exists.
  58.  
  59.     "sources" may be files or directories; there must be at least one.
  60.  
  61.     "destination" specifies a directory to which the soruces are to be moved.
  62.  
  63.     There are a few rules:
  64.  
  65.     (1) If MV is used to move files from one disk unit to another,
  66.         the original source file is left after the move.
  67.  
  68.     (2) If there is exactly one source name and it is the name of
  69.         a directory and the destination name is not the name of an
  70.         existing file or directory, MV assumes that the source directory
  71.         is to be renamed to the destination name.
  72.  
  73.     (3) A "many-to-one" move is disallowed by MV.  In other words,
  74.         you can't move 10 files to one file name!
  75.  
  76.     Some examples of MV commands:
  77.  
  78.         mv thisfile thatfile
  79.  
  80.         Renames "thisfile" to "thatfile".  "thisfile" no longer
  81.         exists at the conclusion of the move.
  82.  
  83.         mv /k thisfile thatfile
  84.  
  85.         Copies "thisfile" to "thatfile".  "thisfile" remains at
  86.         the conclusion of the move.
  87.  
  88.         mv *.* \mydir
  89.  
  90.         Moves all files in the current directory to the directory
  91.         "mydir".  At the conclusion of the move, the current directory
  92.         will be empty.
  93.  
  94.         mv \thisdir \thatdir
  95.  
  96.         Renames the directory "\thisdir" to "\thatdir".
  97.  
  98.         mv a:thisfile c:thatfile
  99.  
  100.         Copies "a:thisfile" to "c:thatfile".  "a:thisfile" remains at
  101.         the conclusion of the move.
  102.  
  103.  
  104.  
  105.